import { createApp } from 'vue'
import App from './App.vue'

import router from './router'
import store from './store.js'
import Vant from 'vant';
import './main.css'
import 'vant/lib/index.css';

import { get,post } from "./api/api.js"; 

const app = createApp(App);

app.config.globalProperties.get = get 
app.config.globalProperties.post = post
app.config.globalProperties.changeUrl = function(url){ // changeUrl("/") 
	window.location.href  =  window.host + "#" + url
} 
//  window.location.origin +"/#/?address=" + this.address,  

app.use(Vant);
app.use(router)
app.use(store)  
app.mount('#app')
